import Layout from '@/layout/index.vue'
import { HomeConst } from '@/constants/system/router-const'
const homeRouters: Array<AppRouteRecordRaw> = [
  {
    path: '/',
    name: '_Home',
    component: Layout,
    redirect: { name: HomeConst.HOME_PAGE_NAME },
    meta: {
      id: '0',
      componentName: 'Layout',
      title: '首页',
      icon: 'el-icon-s-home',
      hideInMenu: false,
      keepAlive: true,
      frameFlag: false,
      frameUrl: '',
      renameComponentFlag: false
    },
    children: [
      {
        path: HomeConst.HOME_PAGE_PATH,
        name: HomeConst.HOME_PAGE_NAME,
        component: () => import('@/views/system/home/index.vue'),
        meta: {
          id: '1',
          componentName: 'demo',
          title: '首页',
          icon: 'el-icon-s-home',
          hideInMenu: false,
          keepAlive: true,
          frameFlag: false,
          frameUrl: '',
          renameComponentFlag: false
        }
      },
      {
        path: '/account',
        name: 'Account',
        component: () => import('@/views/system/account/index.vue'),
        meta: {
          title: '个人中心',
          hideInMenu: false
        }
      }
    ]
  }
]
export default homeRouters
